<?php
class City extends AppModel {

	var $name = 'City';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $hasMany = array(
			'Employer' => array('className' => 'Employer',
								'foreignKey' => 'city_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => ''
			),
			'Job' => array('className' => 'Job',
								'foreignKey' => 'city_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => ''
			),
			'Jobseeker' => array('className' => 'Jobseeker',
								'foreignKey' => 'city_id',
								'dependent' => false,
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => ''
			)
	);

	var $hasAndBelongsToMany = array(
			'Assistant' => array('className' => 'Assistant',
						'joinTable' => 'assistants_cities',
						'foreignKey' => 'city_id',
						'associationForeignKey' => 'assistant_id',
						'unique' => true,
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''
			)
	);

}
?>